import javax.swing.ImageIcon;
import javax.swing.JLabel;


public class Case {
	int taille_x;
	int taille_y;
	double position_x;
	double position_y;
	int indice_x;
	int indice_y;
	public JLabel visuel_terrain;

	public ImageIcon image;
	
	public Case (ImageIcon image_initiale){

		image = image_initiale;

	}
	
	public ImageIcon getImageIcon(){
		
		return image;
	}
		
	public void setPosition(double x,double y){
		
		position_x=x;
		position_y=y;
	}	
	public void setIndice(int x,int y){
		
		indice_x=x;
		indice_y=y;
	}	
	public int getIndice(int axe){
		
		if (axe==1)
		{
			return indice_x;
		}
		else
		{
			return indice_y;
		}
	}

	public void setImage(ImageIcon image_fixe) {
		// TODO Auto-generated method stub
		image = image_fixe;
	}	

}
